package eva.savant.core.navigation;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Node implements Serializable {


    protected String    id;

    protected String label;

    protected boolean leaf;

    protected boolean link;

    protected boolean expanded;

    protected boolean selected;

    protected Content content;

    protected List<Node> node;


    public String getId() {

        return id;
    }

    public void setId(String value) {

        this.id = value;
    }

    public String getLabel() {

        return label;
    }

    public void setLabel(String value) {

        this.label = value;
    }

    public boolean isLeaf() {

        return leaf;
    }

    public void setLeaf(boolean value) {

        this.leaf = value;
    }

    public boolean isLink() {

        return link;
    }

    public void setLink(boolean value) {

        this.link = value;
    }

    public boolean isExpanded() {

        return expanded;
    }

    public void setExpanded(boolean value) {

        this.expanded = value;
    }

    public boolean isSelected() {

        return selected;
    }

    public void setSelected(boolean selected) {

        this.selected = selected;
    }

    public Content getContent() {

        return content;
    }

    public void setContent(Content value) {

        this.content = value;
    }

    public List<Node> getNode() {

        return node==null? node = new ArrayList<Node>() : node;
    }
    
}
